package com.ruoyi.elasticsearch.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.elasticsearch.domain.AlarmEntity;
import com.ruoyi.elasticsearch.es.domain.DeviceInfoDTO;
import com.ruoyi.elasticsearch.es.domain.QuotaDTO;

import java.util.List;

public interface AlarmService extends IService<AlarmEntity> {

    /**
     * 根据指标判断告警信息
     * @param quotaDTO
     * @return
     */
    AlarmEntity verifyQuota(QuotaDTO quotaDTO);

    List<AlarmEntity> getByQuotaId(Integer quotaId);

    /**
     * 根据设备信息判断
     * @param deviceInfoDTO
     */
    DeviceInfoDTO verifyDeviceInfo(DeviceInfoDTO deviceInfoDTO);
}
